import { Component, OnInit ,Input,OnChanges} from '@angular/core';
import { NzNotificationService } from 'ng-zorro-antd';
import { Router } from '@angular/router';
import { HttpServcie } from '../../../../../service/http.service';
import { Config } from '../../../../../service/config';
import { DebrisQuarterBean} from '../bean/debrisQuarter.bean';
import { el } from "@angular/platform-browser/testing/src/browser_util";
import { NzModalService, NzModalSubject } from 'ng-zorro-antd';
import { CommFuntion } from '../../../../../service/commFunction';
@Component({
    selector: 'debris-quarter',
    templateUrl: './debris-quarter.html',
    styleUrls: ['./debris-quarter.scss']
})
/**
 * 杂物电梯季度
 */
export class DebrisQuarterPage implements OnInit,OnChanges {
    @Input() inValue:any;
     data: any;
     list: any = [{}];//返回的数据
     debrisQuarterBean: DebrisQuarterBean = new DebrisQuarterBean();
     types: any = []; //电梯类型
     config: any;
     showBean: any={};
     picList:any=[];
     currentModal:any;
    
    constructor(
        private httpServcie: HttpServcie,
        private router: Router,
        private _notification: NzNotificationService,
        private nsub: NzModalSubject,
        private modalService: NzModalService,
        private commFuntion:CommFuntion

    ) {
        this.config = Config;
        this.list = [{}]
    }

    ngOnInit() {
    }
    ngOnChanges(){
        this.debrisQuarterBean = this.inValue;
        this.showBean = this.commFuntion.convertBean(this.debrisQuarterBean);
    }
    refreshStatus() {

    }

    showLargeImage(titlepic,contentpic,footerpic,img){
		
		this.picList=[];
		this.picList.push(img);
		this.currentModal = this.modalService.open({
		title       : titlepic,
		content     : contentpic,
		footer      : footerpic,
		maskClosable: false,
        width:800,
        zIndex:9999,
		style : {
			top: '20px'
		},
		onOk() {
			console.log('Click ok');
		}
		});
    }
}
